﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="InvoiceAddNo.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.InvoiceManage.InvoiceAddNo"
    Title="新建发票" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">新建发票</a></li>
        </ul>
    </div>--%>
    <div class="maincon2">
        <div class="note">
            <%=Request.QueryString["isID"] == null ? "新建" : "修改"%>发票</div>
        <div class="note2">
        </div>
        <table class="querylist">
            <tr>
                <th align="right">
                    需开票医疗机构：
                </th>
                <td>
                    <asp:Label runat="server" ID="lblHospital"></asp:Label>
                </td>
            </tr>
            <tr>
                <th align="right">
                    发票号：
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                        ShowSummary="False" ValidationGroup="0" />
                </th>
                <td align="left">
                    <asp:TextBox ID="txtInvoiceID" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvInvoiceID" runat="server" ErrorMessage="请填写发票号！"
                        ControlToValidate="txtInvoiceID" Display="None" ValidationGroup="0" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th align="right">
                    建票时间：
                </th>
                <td align="left">
                    <asp:TextBox ID="dtInvoiceTime" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                        MaxLength="20" Width="107px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvInvoiceTime"
                            runat="server" ErrorMessage="请填写建票时间！" ControlToValidate="dtInvoiceTime" Display="None"
                            ValidationGroup="0" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </td>
            </tr>
             <tr id="change" runat="server" style="display:none;" >
                <th align="right">
                     <asp:CheckBox ID="ckUpdate" runat="server" Text="修改总金额" AutoPostBack="true"
                         oncheckedchanged="ckUpdate_CheckedChanged"/>
                </th>
                <td align="left">
                    <div id="Update" runat="server">
                          <asp:TextBox ID="txtTotalAmount" runat="server">
                          </asp:TextBox> 
                          <asp:Label ID="Label3" runat="server" Text="调价原因："></asp:Label>
                          <asp:TextBox ID="txtReson" runat="server"></asp:TextBox> 
                    </div>
                </td>
            </tr>
            <%--            <tr>
                <th align="right">
                    采购医疗机构：
                </th>
                <td align="left">
                    <asp:DropDownList ID="ddlHospital" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>--%>
        </table>
    </div>
    <div id="warm"  runat="server">
        <ul>
            <li>说明:<asp:Label ID="Label2" runat="server" Text="若要修改金额，请选择复选框修改总金额！"></asp:Label></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAdd" runat="server" Text="保存" OnClick="btnAdd_Click" ValidationGroup="0"
            CssClass="btn" ToolTip="点击添加" />
        <input id="btnBack" runat="server" type="button" value="返回" onclick="javascript:history.go(-1)"
            class="btn" />
    </div>
  <div id="divAlterNote"  runat="server">
         <asp:Label ID="Label1" runat="server" Text="涉及金额修改记录查看" style="float:left"></asp:Label>
         <br />
         <asp:GridView ID="gvAlterNote" runat="server" CssClass="mainlist" AutoGenerateColumns="false">
             <Columns>
             <asp:BoundField DataField="InvoiceSerialID" HeaderText="发票流水号"/>
             <asp:BoundField DataField="InvoiceID" HeaderText="发票号" />
             <asp:BoundField DataField="TotalAmount_old" HeaderText="原来总金额" />
             <asp:BoundField DataField="TotalAmount" HeaderText="修改总金额"/>
             <asp:BoundField DataField="HospitalID" HeaderText="医疗机构名称"/>
             <asp:BoundField DataField="Altertime" HeaderText="修改时间" />
             <asp:BoundField DataField="Note" HeaderText="修改原因"/>
             </Columns>
        </asp:GridView>
        <br />
        <div class="page">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
            </webdiyer:AspNetPager>
        </div>
  </div>
</asp:Content>
